package com.erb.task;

import com.erb.service.llb.IAdvertisementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 广告定时任务
 */
@Component
public class AdvertisementTask {

	@Autowired
	IAdvertisementService advertisementService;

	@Scheduled(cron = "0/30 * * * * ?")
	public void advertisementStatusTask() {
		advertisementService.updateStatusTask();
	}

}
